<?php
  class Model_plan extends CI_Model{
	  protected $_table = "tbl_news";
	  public function __construct(){
		  parent::__construct();
		  $this->load->database();
	  }
	  public function getdata($id){
		  $this->db->where("url",$id);
		  return $this->db->get($this->_table)->row_array();
	  }
  }